//
//  YTSiginButton.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/8/1.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTSiginButton.h"

#define kSiginSelectedColor [UIColor colorWithRed:0.0f/255.0f green:186.0f/255.0f blue:246.0f/255.0f alpha:1]
@interface YTSiginButton ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;

@property (weak, nonatomic) IBOutlet UILabel *moneny;

@property (weak, nonatomic) IBOutlet UILabel *dayLabel;

@end
@implementation YTSiginButton

- (void)setDict:(NSDictionary *)dict
{
    _dict = dict;
    
    self.moneny.text = [NSString stringWithFormat:@"+%@ETAI",dict[@"money"]];
    self.dayLabel.text = [NSString stringWithFormat:@"第%@天",dict[@"days"]];
}


- (void)setSelected:(BOOL)selected
{
    [super setSelected:selected];
    
    if (selected) {
        self.iconView.image = [UIImage imageNamed:@"kcxxx"];
        self.dayLabel.text = @"已领";
        self.moneny.textColor = kSiginSelectedColor;
        self.dayLabel.textColor = kSiginSelectedColor;
    }
}

@end
